package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.ChangePwdResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  修改密码接口
* */


public class ChangePwdApi extends AbsRequest<ChangePwdApi.ChangePwdParams, ChangePwdResult> {

    public ChangePwdApi(ChangePwdParams changePwdParams, Listener<ChangePwdResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getChangePwdUrl(), changePwdParams, listener, errorListener, ChangePwdResult.class);
    }

    public static class ChangePwdParams extends BaseParams {

        public ChangePwdParams(String username, String password) {

                put("PHONE", username);
                put("PASSWORD", password);

        }
    }


}
